package io.github.talelin.latticy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.github.talelin.latticy.dto.machine.CreateOrUpdateMachineDTO;
import io.github.talelin.latticy.model.MachineDO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author generator@TaleLin
 * @since 2021-05-20
 */
public interface MachineService extends IService<MachineDO> {

    boolean createMachine(CreateOrUpdateMachineDTO validator);

    boolean updateMachine(MachineDO machine, CreateOrUpdateMachineDTO validator);

    List<MachineDO> findAll();

    boolean deleteById(Integer id);
}
